home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
ASTRONOM
/
H139.ZIP
/
UI101.ZIP
/
IO
/
DR
/
DR.H
< prev
Wrap
C/C++ Source or Header
|
1991-11-04
|
2KB
|
64 lines
/***************************************************************
dr.h Header file for DR (directory)
io standards
Copyright (c) 1991, Ted A. Campbell
Bywater Software
P. O. Box 4023
Duke Station
Durham, NC 27706
email: tcamp@hercules.acpub.duke.edu
Copyright and Permissions Information:
All U.S. and international copyrights are claimed by the
author. The author grants permission to use this code
and software based on it under the following conditions:
(a) in general, the code and software based upon it may be
used by individuals and by non-profit organizations; (b) it
may also be utilized by governmental agencies in any country,
with the exception of military agencies; (c) the code and/or
software based upon it may not be sold for a profit without
an explicit and specific permission from the author, except
that a minimal fee may be charged for media on which it is
copied, and for copying and handling; (d) the code must be
distributed in the form in which it has been released by the
author; and (e) the code and software based upon it may not
be used for illegal activities.
***************************************************************/
#define MAX_PATHLENGTH 64
/* File types for return */
#define FILE_NORMAL 0
#define FILE_DIRECTORY 1
#define FILE_EXECUTABLE 2
/* Structure for directory entries */
struct dir_ent
{
char filename[ MAX_PATHLENGTH ];
char pathname[ MAX_PATHLENGTH ];
int type;
long size;
};
/* externals */
extern int dr_fs;
extern char dr_all[ MAX_PATHLENGTH ];
#ifndef TRUE
#define TRUE 1
#define FALSE 0
#endif